﻿//-----------------------------------------------------------------------
// <copyright file="CancelEventArgs.cs" company="Noboru Project">
//      Copyright (c) Noboru Project. All rights reserved.
//
//      This source code is subject to terms and conditions of the New BSD License (BSD).
//      A copy of the license can be found in the License.html file at the root of this 
//      distribution. If you can not locate the New BSD License (BSD), please send an 
//      email to noboru_adm@live.com.
//      By using this source code in any fashion, you are agreeing to be bound by
//      the terms of the New BSD License (BSD) for Noboru.
//
//      You must not remove this notice, or any other, from this software.
// </copyright>
//-----------------------------------------------------------------------

using System;

namespace Noboru.Windows.Controls
{
    /// <include file='Documentation\CancelEventArgsDocumentation.uex' path='Members/Member[@for="CancelEventArgs.Class"]/*' />
    public class CancelEventArgs : EventArgs
    {
        private bool _cancel;

        /// <include file='Documentation\CancelEventArgsDocumentation.uex' path='Members/Member[@for="CancelEventArgs.Constructor"]/*' />
        public CancelEventArgs()
        {
        }

        /// <include file='Documentation\CancelEventArgsDocumentation.uex' path='Members/Member[@for="CancelEventArgs.Constructor1"]/*' />
        public CancelEventArgs(bool cancel)
        {
            this._cancel = cancel;
        }

        /// <include file='Documentation\CancelEventArgsDocumentation.uex' path='Members/Member[@for="CancelEventArgs.Cancel"]/*' />
        public bool Cancel
        {
            get
            {
                return this._cancel;
            }

            set
            {
                this._cancel = value;
            }
        }
    }
}
